package experiment_03;

import java.net.ServerSocket;
import java.net.Socket;

public class BIOServer {
	@SuppressWarnings({ "resource" })
	public static void main(String[] args)throws Exception{
		ServerSocket server=new ServerSocket(12345);
		while(true) {
			Socket socket=server.accept();
			SocketHandler handler=new SocketHandler(socket);
			Thread thread=new Thread(handler);
			thread.start();
		}
	}
}
